package com.castle.fortress.admin.member.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.member.dto.MemberGroupRelationDto;
import com.castle.fortress.admin.member.entity.MemberGroupRelationEntity;

import java.util.List;

/**
 * 会员分组关联关系表 服务类
 *
 * @author Mgg
 * @since 2021-12-03
 */
public interface MemberGroupRelationService extends IService<MemberGroupRelationEntity> {

    /**
     * 分页展示会员分组关联关系表列表
     * @param page
     * @param memberGroupRelationDto
     * @return
     */
    IPage<MemberGroupRelationDto> pageMemberGroupRelation(Page<MemberGroupRelationDto> page, MemberGroupRelationDto memberGroupRelationDto);


    /**
     * 展示会员分组关联关系表列表
     * @param memberGroupRelationDto
     * @return
     */
    List<MemberGroupRelationDto> listMemberGroupRelation(MemberGroupRelationDto memberGroupRelationDto);

}
